﻿using System;
using System.IO;

namespace RoketSolutions.SP2010.Infrostructure.Localization.Attributes
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
    public class ResourceFileAttribute : Attribute
    {
        public string FileName { get; set; }

        public ResourceFileAttribute(string resourceFileName)
        {
            FileName = Path.GetFileNameWithoutExtension(resourceFileName);
        }

        public ResourceFileAttribute():this(string.Empty)
        {
            
        }
    }
}